package com.pan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pan.dao.UserDao;
import com.pan.domain.Apply;
import com.pan.domain.User;
import com.pan.domain.Zhanshi;
import com.pan.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements IUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<Zhanshi> getSome() {
        return userDao.getSome();
    }

    @Override
    public User getByUsername(String username) {
        return userDao.getByUsername(username);
    }

    @Override
    public String getByDeptno(Integer deptno) {
        return userDao.getByDeptno(deptno);
    }

    @Override
    public Apply getOwn(User user) {
        return userDao.getOwn(user);
    }

    @Override
    public Boolean applyOrChange(User user) {
        return userDao.applyOrChange(user);
    }

    @Override
    public User getByName(String name) {
        return userDao.getByName(name);
    }
}
